﻿using IntelligentFiles.HcControl;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IntelligentFiles.HcForm
{
    public partial class Files : Form
    {
        public Files()
        {
            InitializeComponent();
        }
        int Num = 0;
        private void pic_close_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        private void showFiles()
        {
            for (int i = 0; i < Num; i++)
            {
                fileInfo fi = new fileInfo();
                //计算坐标
                int Y = (5 + fi.Height) * i + 5;
                fi.Location = new Point(2, Y);
                fi.setInfo("案件名称" + (i + 1), "2020613" + i, "2020-6-13 10:10:1" + i, lab_box.Text);
                panel_files.Controls.Add(fi);
            }
        }
        public void setTitle(string  name,int  number)
        {
            lab_box.Text = name;
            Num = number;
            showFiles();

        }
        private void Files_Load(object sender, EventArgs e)
        {

        }

        private void btn__operation_Click(object sender, EventArgs e)
        {
            Opearttion_file of = new Opearttion_file();
            of.Show();
        }
    }
}
